package controllers;

import models.Trick;

/**
 * Dummy CRUD admin area to manage models on the fly (esp when we're using
 * db=mem)
 * <p>
 * Accessible via http://localhost:9000/admin/blob
 * 
 * @author mahmoudsakr
 */
@CRUD.For (Trick.class)
public class Blob extends CRUD {

	/**
	 * Dummy method to do certain task on the fly
	 * <p>
	 * Accessible via http://localhost:9000/blob
	 */
	public static void index() {
		Trick trick = new Trick();
		trick.cards.add("test1");
		trick.cards.add("test2");
		trick.cards.add("test2");
		trick.cards.add("test2");
		trick.save();
	}
}
